﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Data.SqlServerCe;

namespace WoWDeckbuilder
{
    public partial class frmWoWDeckbuilder : Form
    {
        // classes
        //CardViewer Viewer;
        // variables
        // lists
        // other
        
        public frmWoWDeckbuilder()
        {
            InitializeComponent();
        }

        /// <summary>
        /// When the form loads view the correct UserControll.
        /// </summary>
        private void Form1_Load(object sender, EventArgs e)
        {
            ucCardviewer.Visible = true;
            ucDeckbuilder.Visible = false;
        }

        /// <summary>
        /// Closes the form
        /// </summary>
        private void exitToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.Close();
        }



        /// <summary>
        /// When the form closes make sure that the next the things are closed too.
        /// </summary>
        private void frmWoWDeckbuilder_FormClosing(object sender, FormClosingEventArgs e)
        {
            ucCardviewer.Close();
        }

        /// <summary>
        /// View the CardViewer UserControll.
        /// </summary>
        private void cardviewerToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ucCardviewer.Visible = true;
            ucDeckbuilder.Visible = false;
        }

        /// <summary>
        /// View the DeckBuilder UserControll.
        /// </summary>
        private void deckbuilderToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ucCardviewer.Visible = false;
            ucDeckbuilder.Visible = true;
        }
    }
}
